/**
 * Creat with IntelliJ IDEA
 * Description
 * User: mamba24
 * Date: 2022-07-24
 * Time: 15:52
 * To BE A Better Person-2020-3-2
 */
public class TestDemo {
    public static void main(String[] args) throws InterruptedException {
        for(int i=0;i<20;i++){
            int finalI = i;
            Thread t=new Thread(()->{
                System.out.println(finalI+1 );
            });
            t.start();
            t.join();
        }

        System.out.println("ok");
    }
}
